package org.tom.pet.mapper;


import org.apache.ibatis.annotations.Param;
import org.tom.basic.mapper.BaseMapper;
import org.tom.pet.domain.Pet;
import org.tom.user.domain.UserAddress;

import java.util.List;
import java.util.Map;

public interface PetMapper extends BaseMapper<Pet> {
    void onsale(Map<String, Object> params);

    void offSale(Map<String, Object> params);

    Pet loadByIdDetail(Long id);

    Pet loadPetByStateAndId(@Param("id") Long id, @Param("state") Long online);

    UserAddress getAddress(Long id);

    List<Pet> batchSelectByIds(@Param("ids") List<Long> ids, @Param("state")int state);
}
